<template>
	<view v-if="isLoaded">
		<li-report
			height="900"
			:param.sync="param"
			:reportData="tableData"
			:columns="cdColumn"
			v-on:onResetFields="onResetFields($event)"
			:isShowLoadMore="isShowLoadMore"
		></li-report>
	</view>
</template>

<script>
import LiReportMixin from '../../../mixins/liReportMixin.js';
import date from '@/utils/date';
export default {
	mixins: [LiReportMixin],
	data() {
		return {
			isShowLoadMore: true,
			reportFn: 'GetPageReport',
			navTitle: '',
			param: {
				dataTimeRange: [date.getToday(), date.getToday()],
				pageNum: 1,
				pageSize: 20,
				reportId: 108,
				appointType: 1
			},
			cdColumn: [
				{
					name: 'businessDate',
					label: '营业日期',
					fixed: false,
					sorter: true
				},
				{
					name: 'departName',
					label: '部门名称',
					fixed: false
				},
				{
					name: 'amount',
					label: '营业额',
					fixed: false,
					sorter: true
				},
				{
					name: 'allAmount',
					label: '营业收入',
					fixed: false,
					sorter: true
				},
				{
					name: 'reduceAmount',
					label: '优惠金额',
					fixed: false,
					sorter: true
				},
				{
					name: 'quantity',
					label: '销售数量',
					fixed: false,
					sorter: true
				}
			]
		};
	}
};
</script>
